import java.util.Scanner;

public class demo06 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("是否为本超市会员？（是|否）：");
        String a = scanner.next();
        System.out.println("请输入购买金额：");
        double b = scanner.nextDouble();
        if (a.equals("是")){
            if (b <= 100){
                System.out.println("需支付："+b*0.9);
            }else {
                System.out.println("需支付"+b*0.8);
            }
        }else {
            if (b<=100){
                System.out.println("需支付"+a);
            }else {
                System.out.println("需支付"+b*0.9);
            }
        }
    }
}
